package com.qdhh.enrollment.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 系统配置实体类 - 对应sys_config表
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("sys_config")
public class SysConfig {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id; // 配置ID

    @TableField("config_key")
    private String configKey; // 配置键

    @TableField("config_value")
    private String configValue; // 配置值

    @TableField("description")
    private String description; // 说明

    @TableField("deleted")
    private Integer deleted; // 软删除

    @TableField("version")
    private Integer version; // 乐观锁版本号

    @TableField("created_at")
    private LocalDateTime createdAt; // 创建时间

    @TableField("updated_at")
    private LocalDateTime updatedAt; // 更新时间
}

